// import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'

import './static/styles/main.scss'

import { Provider } from 'react-redux'
import {store,persistor} from './store'
import { PersistGate } from 'redux-persist/integration/react'

import { RouterProvider } from 'react-router-dom'
import router from './router'

import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN';

createRoot(document.getElementById('root')!).render(
  // <StrictMode>
  // </StrictMode>,
    <Provider store={store}>
        <PersistGate persistor={persistor} loading={null}>
            <ConfigProvider locale={zhCN}>
                <RouterProvider router={router}></RouterProvider>
            </ConfigProvider>
        </PersistGate>
    </Provider>
)
